<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
    @import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
    @import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
    @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
</style>
<script type="text/javascript">
    var t = jQuery.noConflict();
    t(document).ready(function() {
        t('#example').dataTable({
            "sPaginationType": "full_numbers",
            "sDom": 'T C lfrtip',
            "oTableTools": {
                "sSwfPath": "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
                "aButtons": [
                    "xls",
                    "pdf",
                    {
                        "sExtends": "print",
                        "sButtonText": "Imprimir",
                        "sInfo": "<br><center><h1>PRESIONAR ESCAPE AL TERMINAR</h1></center>",
                        "sMessage": "<center><h2><b>TITULO!</b></h2></center>",
                        "sTitle": "Listado x Obra Social",
                    }],
            },
        });
    });
</script>


<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/rpt_matricula/inicio" ?>" method="post">
    <legend>REPORTES DE <?php echo strtoupper($nombre_rubro); ?></legend>
    <div class="control-group">
        <label class="control-label" for="select03">SECCION:<?php echo (empty($listar) ? $nom_seccion : "TODAS LAS SECCIONES"); ?></label>
    </div>  
    <div class="tabbable">  
        <!-- se coloca el tabbable para que la tabla example muestre la barra horizontal y vertical -->
        <ul class="nav nav-tabs">
            <li class="active"><a href="#1" data-toggle="tab">RUBROS</a></li>
            
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="1">

                <div id="tablamatriculai" >
                    <table id="example" class="table table-bordered table-striped table-condensed">

                        <thead>
                            <tr>
                                <th>Nr</th>
                                <!--<th>MAT</th>-->
                                <th>CEDULA</th>
                                <th>APELLIDO</th>
                                <th>NOMBRE</th>
                                <th>CARRERA</th>
                                <th>CICLO</th>
                                <th>PAR</th>
                                <th>SEC</th>
                                <th>VALOR</th>
                                <th>COUT</th>
                                <th>DEBE</th>
                                <th>CANC</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $fila = 1;
                            $id_matr = "";
                            if (!empty($reporte)) {
                                foreach ($reporte as $i => $repor) {
                                    ?>

                                    <tr>
                                        <td> <?php echo $fila; ?></td>
                                        <!--<td><?php //echo $repor['nro_matr']   ?></td> -->
                                        <td><?php echo $repor['cedula_pers'] ?></td>
                                        <td><?php echo $repor['apellido_pers'] ?></td>
                                        <td><?php echo $repor['nombre_pers']; ?></td>
                                        <td><?php echo $repor['nombre_car'] ?></td>
                                        <td><?php echo ($repor['nombre_cic']) ?></td>
                                        <td>  <?php echo ($repor['paralelo']) ?></td>
                                        <td><?php echo ($repor['seccion'] == 1 ? "D" : ($repor['seccion'] == 2 ? "N" : ($repor['seccion'] == 3 ? "FS" : "-"))); ?></td>
                                        <td><?php echo $repor['costo_rubro'] ?></td>
                                        <td><?php echo ($this->rubrocons_modelo->Nro_cuotas($repor["id_matr"])) ?></td>
                                        <td><?php echo ($this->rubrocons_modelo->Nro_Nocanceladas($repor["id_matr"])) ?></td>
                                        <td><?php echo ($repor['estado_asigna'] == 1 ? "NO" : "SI") ?></td>


                                    </tr>
                                    <?php
                                    $fila+=1;
                                }
                            }
                            ?>
                        </tbody>
                    </table>  
                </div>


                <div class="controls">
                    <button type="submit" class="btn">Volver Datos</button>

                </div> 
            </div>  <!--fin tabulador 3 -->
                

        </div>
    </div>



</form>


